<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3../../../../../ml4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Combo Chart with object literal dataProvider</title>
<style>
#mychart {
    width: 500px;
    height: 350px;
}
</style>
<link rel="stylesheet" type="text/css" href="../../../../build/cssfonts/fonts-min.css">
</head>
<body class="yui3-skin-sam">
<h3>Combo Chart with object literal dataProvider</h3>
<div id="mychart"></div>
<script type="text/javascript" src="../../../../build/yui/yui.js"></script>
<script type="text/javascript">
    YUI({
        defaultGraphicEngine: (window.location.search.match(/[?&]defaultGraphicEngine=([^&]+)/) || [])[1] || 'svg',
		filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw'
    }).use('charts', function (Y) {
        var myDataValues = [
            {category:"5/1/2010", values:2000},
            {category:"5/2/2010", values:50},
            {category:"5/3/2010", values:400},
            {category:"5/4/2010", values:200},
            {category:"5/5/2010", values:5000}
        ];

        var mychart = new Y.Chart({
            dataProvider:myDataValues,
            render:"#mychart"
        });
    });
</script>
</body>
</html>
